rd /s/q box\service\bin\dist
rd /s/q box\service\bin\vp
del box\service\bin\tm.exe 
del box\service\bin\dm.exe 
del box\service\bin\box.exe 
mkdir box
mkdir box\service
mkdir box\service\bin


cd Business\SmartPower\page
call yarn build

xcopy dist ..\..\..\box\service\bin\dist\ /s/y
cd ..\..\..\

cd tm\cloud\gosrc
go mod tidy
go build -o ..\..\..\box\service\bin\tm.exe
cd ..\..\..\
cd dm\cloud\gosrc
go mod tidy
go build -o ..\..\..\box\service\bin\dm.exe
cd ..\..\..\
cd devs\box\gosrc
go mod tidy
go build -o ..\..\..\box\service\bin\box.exe
cd ..\..\..\
cd osextend\service\gosrc
go mod tidy
go build -o ..\..\..\box\service\bin\s.exe

cd ..\..\..\
mkdir box\service\bin\vp
cd osextend\video\gosrc
go mod tidy
go build -o ..\..\..\box\service\bin\vp\vpsc.exe
cd ..\..\..\

xcopy osextend\service\bin\VLCPortable box\service\bin\vp\VLCPortable\ /s/y
copy D:\work\code\git.248\iot-base\script\run.vbs box\service\bin\vp\
inno\ISCC.exe installdisk\install\vps.iss

copy D:\work\code\git.248\iot-base\installdisk\videopluginIOTBASE.exe box\service\bin\files\

rd /s/q box\service\bin\vp
inno\ISCC.exe installdisk\install\box.iss

inno\ISCC.exe installdisk\install\pack.iss

